package com.example.springretrydemo.contrller;

import com.example.springretrydemo.service.TestRetryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: xiaokuixiao
 * @dete: 2023/1/17 11:39
 */
@RestController
@RequestMapping("/test")
public class TestContrller {
    @Autowired
    TestRetryService testRetryService;

    @GetMapping("/code")
    public int getCode() {
        return testRetryService.test(0);

    }
}
